<template>
  <div id="app">
    <v-main v-if="isRouterAlive"/>
  </div>

</template>

<script>

  import Main from './componnet/Main'

  export default {
    name: 'app',
    provide () {
      return {
        reload: this.reload
      }
    },
    data() {
      return {
        isRouterAlive:true,
        msg: 'Welcome to Your Vue.js App'
      }
    },
    methods: {
      reload () {
        this.isRouterAlive = false
        this.$nextTick(function () {
          this.isRouterAlive = true
        })
      }
    },
    components: {
      'v-main': Main
    }
  }
</script>

<style lang="scss">
</style>
